package com.cmsz.xpay.common.exception;

/**
 * 统一支付项目异常基类
 * 
 * @author wuhang
 */
@SuppressWarnings("serial")
public abstract class UpayBaseException extends RuntimeException {

	/**
	 * 返回码枚举
	 */
	protected IUpayReturnCode returnCode;

	/**
	 * @param log
	 *            - 要打印的日志
	 * @param rc
	 *            - 返回码
	 */
	public UpayBaseException(String log, IUpayReturnCode rc) {
		super(log);
		this.returnCode = rc;
	}

	/**
	 * @param log
	 *            - 要打印的日志
	 * @param rc
	 *            - 返回码
	 * @param t
	 */
	public UpayBaseException(String log, IUpayReturnCode rc, Throwable t) {
		super(log, t);
		this.returnCode = rc;
	}

	public IUpayReturnCode getReturnCode() {
		return returnCode;
	}

}
